package com.wrupple.muba.catalogs.client.activity.process.impl;

import com.google.gwt.core.client.JavaScriptObject;
import com.wrupple.muba.catalogs.client.activity.process.CatalogSelectionProcess;
import com.wrupple.muba.catalogs.client.activity.process.LoadSelectionProcessData;
import com.wrupple.muba.catalogs.client.activity.process.task.CatalogSelectionState;
import com.wrupple.muba.catalogs.client.view.BrowseView;

public class SimpleCatalogSelectionProcess<O extends JavaScriptObject> extends SimpleSelectionProcess<O> implements CatalogSelectionProcess<O>{

	private CatalogSelectionState<O> catalogSelectionState;

	public SimpleCatalogSelectionProcess(
			LoadSelectionProcessData loadEntryTypes,
			CatalogSelectionState<O> entrySelection) {
		super(loadEntryTypes, entrySelection);
		this.catalogSelectionState = entrySelection;
	}

	@Override
	public BrowseView<O> getBrowseView() {
		return catalogSelectionState.getBrowseView();
	}
	
	@Override
	public void allowMultipleSelection(boolean allow) {
		catalogSelectionState.allowMultipleSelection(allow);
	}




}
